class Author {
    String? avatar_url;
    String? id;
    String? if_v;
    String? is_following;
    String? nickname;
    int? pub_recipe_num;

    Author({this.avatar_url, this.id, this.if_v, this.is_following, this.nickname, this.pub_recipe_num});

    factory Author.fromJson(Map<String, dynamic> json) {
        return Author(
            avatar_url: json['avatar_url'], 
            id: json['id'], 
            if_v: json['if_v'], 
            is_following: json['is_following'], 
            nickname: json['nickname'], 
            pub_recipe_num: json['pub_recipe_num'], 
        );
    }

    Map<String, dynamic> toJson() {
        final Map<String, dynamic> data = new Map<String, dynamic>();
        data['avatar_url'] = this.avatar_url;
        data['id'] = this.id;
        data['if_v'] = this.if_v;
        data['is_following'] = this.is_following;
        data['nickname'] = this.nickname;
        data['pub_recipe_num'] = this.pub_recipe_num;
        return data;
    }
}